package com.yjc.drygoods.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yjc.common.utils.PageUtils;
import com.yjc.drygoods.product.entity.AttrEntity;
import com.yjc.drygoods.product.vo.AttrRespVo;
import com.yjc.drygoods.product.vo.AttrVo;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author yjc
 * @email yjc19979401754@126.com
 * @date 2022-08-19 21:27:48
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveAttr(AttrVo attr);

    PageUtils queryBaseAttrPage(Map<String, Object> params, Long catelogId,String type);

    AttrRespVo getAttrInfo(Long attrId);

    void updateAttr(AttrVo attr);

    List<AttrEntity> getRelationAttr(Long attrgroupId);

    PageUtils getNoattrRelation(Map<String, Object> params, Long attrgroupId);

    /**
     * 获取到允许被检索的属性
     * @param attrList
     * @return
     */
    List<Long> getAllowSearchAttr(List<Long> attrList);
}

